<form action="<%= tabs_competition_path(@competition, 'question_lists') %>" method="get" id="form_lqlcfilter">
  <%= hidden_field_tag :section_id, params[:section_id] %>
</form>
<div class="left" style="width:180px">
  <div class="area">
    <ul class="filter-list">
    <%= question_list_section_id_entry_inner '所有环节',
      @competition.sections.inject(0){|sum,s|sum+s.question_lists.count} , '' %>
    <% @competition.sections.each do |section| %>
      <%= question_list_section_id_entry section %>
    <% end %>
    <ul>
  </div>
</div>
<div id="div_lql" class="right" style="width:530px;">
  <% if !params[:new].nil? || @competition.question_lists.empty? %>
    <%= render partial: 'question_lists/form',
        locals: { question_list: create_question_list(@competition) } %>
  <% else %>
    <ul class="list-group">
      <% question_list_scope_display.each do |question_list| %>
        <li class="list-group-item">
          <h4 class="left">
            <%= link_to question_list.name, question_list %>
            <span style="overflow: hidden;color: #999999;font-weight: normal">
              <%= question_list.section.name %>
            </span>
          </h4>
          <div class="right list-group-item-meta"><%= author_name(question_list) %></div>
          <div class="clear"></div>
          <span class="list-group-item-meta">
            <%= question_list.questions.count %>个题目
          </span>
        </li>
      <% end %>
    </ul>
  <% end %>

  <%# js_tag '新题目列表', { switch: 'form_qlnc' }%>
  <%# render partial: 'question_lists/form',
      locals: { question_list: create_question_list(@competition) } %>
</div>